import request from "@/utils/request.js";
//是否进行密码认证
export function isCheckPassword(data) {
	return request.get("/api/user/isCheckPassword", data)
}
//用户进行密码认证
export function verifyPassword(data) {
	return request.get("/api/user/verify_password", data)
}
//短信发送
export function getVerificationCode(data) {
	return request.post("/api/sms/send", data)
}
//房东重置密码
export function mobileRegister(data) {
	return request.post("/api/user/reset_owner_pwd", data)
}
// 获取房东月收入
export function getMonthIncome(data) {
	return request.get("/api/user/month_income", data)
}

// 获取抄表列表
export function biaoIndex(data) {
	return request.get("/api/biao/index", data)
}
// 添加抄表数据
export function biaoAdd(data) {
	return request.post("/api/biao/add", data)
}

export function pushContractTk(data) {
	return request.post("/api/contract/pushContractTk", data)
}

export function getContractFixed(data) {
	return request.post("/api/contract/getContractFixed", data)
}

// 获取抄表记录
export function biaoLog(data) {
	return request.get("/api/biao/log", data)
}

// 获取收费列表
export function chargeList(data) {
	return request.get("/api/user_config/charge_list", data)
}
// 添加收费项目
export function chargeAdd(data) {
	return request.post("/api/user_config/charge_add", data)
}
// 修改收费项目
export function chargeEdit(data) {
	return request.post("/api/user_config/charge_edit", data)
}
// 获取楼栋地址列表
export function addressList(data) {
	return request.get("/api/building/address_list", data)
}
// 获取配置列表
export function getOptionList(data) {
	return request.get("/api/house/option_list2", data,{noAuth:true})
}
// 获取费用列表
export function getCostList(data) {
	return request.get("/api/room/cost_list", data)
}


// 获取户型列表
export function hxList(data) {
	return request.get("/api/user_config/hx_list", data)
}
//房间招租
export function roomPublish(data) {
	return request.post("/api/room/publish", data)
}
// 出租登记
export function roomRegister(data) {
	return request.post("/api/contract/add", data)
}
// 添加房间
export function roomAdd(data) {
	return request.post("/api/room/add", data)
}
// 房间详情
export function roomDetail(data) {
	return request.get("/api/room/info", data)
}
// 修改房间
export function roomEdit(data) {
	return request.post("/api/room/edit", data)
}
export function tkDetail(data) {
	return request.post("/api/contract/tkDetail", data)
}

// 生成账单
export function contractAddFecords(data) {
	return request.post("/api/contract/contractAddFecords", data)
}
// 删除仪表信息
export function boardDel(data) {
	return request.get("/api/room/board_del", data)
}
// 删除固定费用信息
export function fixedDel(data) {
	return request.get("/api/room/fixed_del", data)
}
// 配套费用列表
export function ptList(data) {
	return request.get("/api/room/common_pt", data)
}
// 删除配套费用信息
export function ptDel(data) {
	return request.get("/api/room/pt_del", data)
}
// 删除房间
export function roomDelete(data) {
	return request.get(`/api/room/del?id=${data.id}`)
}
//变更记录
export function changeLogRoom(data) {
	return request.post("/api/room/changehostLog", data)
}
export function changeLog(data) {
	return request.post("/api/room/changeLog", data)
}
// 添加合同
export function contractAdd(data) {
	return request.post("/api/contract/add", data)
}
// 合同编辑
export function contractEdit(data) {
	return request.post("/api/contract/edit", data)
}
export function getBoards(data) {
	return request.post("/api/contract/getBoard", data)
}

// 合同审核
export function contractAudit(data) {
	return request.get("/api/contract/audit", data)
}
// 合同撤回待审核
export function contractRevokeAudit(data) {
	return request.post("/api/contract/revoke_audit", data)
}
// 合同删除
export function contractDel(data) {
	return request.post("/api/contract/del", data)
}
// 合同详情
export function contractDetail(data) {
	return request.get("/api/contract/info", data)
}
// 随住人员列表
export function roommate(data) {
	return request.get("/api/contract/roommate", data)
}
// 添加随住人员
export function add_roommate(data) {
	return request.get("/api/contract/add_roommate", data)
}

// 获取房东认证信息
export function landlordinfo(data) {
	return request.get("/api/user/house_owner_auth_info", data)
}
// 房东房源统计
export function stat(data) {
	return request.get("/api/building/stat", data)
}

// 楼栋列表
export function buildinglist(data) {
	return request.get("/api/building/index", data)
}
// 楼栋下拉列表
export function optionlist(data) {
	return request.get("/api/building/option_list", data)
}
// 楼栋下拉列表
export function getZoneList(data) {
	return request.get("/api/zone/index", data)
}
// 区域添加
export function addZone(data) {
	return request.post("/api/zone/add", data)
}
// 区域删除
export function deleteZone(data) {
	return request.post("/api/zone/del", data)
}
// 添加楼栋
export function buildingadd(data) {
	return request.post("/api/building/add", data)
}

// 下拉列表
export function houseoption_list(data) {
	return request.get("/api/house/option_list", data)
}
// 下拉列表
export function houseoption_list2(data) {
	return request.get("/api/house/option_list2", data,{noAuth:true})
}
// 发布房源
export function publish(data) {
	return request.post("/api/building/publish", data)
}
// 房源详情
export function houseDetail(data) {
	return request.get("/api/house/detail", data)
}
// 修改房源
export function houseModify(data) {
	return request.post("/api/building/house_modify", data)
}
// 修改状态
export function setstatus(data) {
	return request.post("/api/building/set_status", data)
}
// 下架
export function buildingdown(data) {
	return request.post("/api/building/down", data)
}
// 发布房源
export function buildingup(data) {
	return request.post("/api/building/up", data)
}
// 房源列表
export function buildingStatList(data) {
	return request.get("/api/building/stat_list", data)
}

// 房东详情
export function etaillist(data) {
	return request.get("/api/house/detail_list", data)
}
// 认证 房东
export function userhouse(data) {
	return request.post("/api/user/house_owner_auth", data)
}

// 一键抄表
export function addBiao(data) {
	return request.post("/api/v2/contract/addBiao", data)
}
// 获取上次抄表
export function biaoInfo(data) {
	return request.post("/api/v2/contract/biaoInfo", data)
}

// 通知租户
export function sendBiaoMessage(data) {
	return request.post("/api/v2/contract/sendBiaoMessage", data)
}
// 合同列表
// export function contractLists(data) {
//     return request.post("/api/v2/contract/contractLists", data)
// }
export function contractLists(data) {
	return request.get("/api/contract/contractLists", data)
}
// 我的合同-各项数据总数
export function contractListStat(data) {
	return request.get("/api/contract/contractListStat", data)
}

// 添加合同
export function contractadd(data) {
	return request.post("/api/v2/contract/add", data)
}


// 合同详情
export function contractInfo(data) {
	return request.post("/api/v2/contract/contractInfo", data)
}
// 合同详情
export function biaoHomeownerLists(data) {
	return request.post("/api/v2/contract/biaoHomeownerLists", data)
}

// 账单收据
export function billLists(data) {
	return request.post("/api/v2/contract/billLists", data)
}

// 未抄表列表
export function biaoWeiBuildLists(data) {
	return request.post("/api/v2/contract/biaoWeiBuildLists", data)
}
// 未抄表详情
export function biaoBuildWeiInfoLists(data) {
	return request.post("/api/v2/contract/biaoBuildWeiInfoLists", data)
}
// 账单详情
export function billInfo(data) {
	return request.post("/api/v2/contract/billInfo", data)
}
export function billInfoNew(data) {
	return request.get("/api/bill/info", data)
}
// 历史账单
export function history_bill(data) {
	return request.get("/api/bill/history_bill", data)
}
// 创建房间
export function buildingaddroom(data) {
	return request.post("/api/building/add_room", data)
}

// 一键抄表
export function addBiaoList(data) {
	return request.post("/api/v2/contract/addBiaoList", data)
}
// 一键抄表
export function sendMessage(data) {
	return request.post("/api/v2/contract/sendMessage", data)
}

// 获取上次抄表
export function biaoHomeownerInfo(data) {
	return request.post("/api/v2/contract/biaoHomeownerInfo", data)
}
// 修改抄表
export function editBiao(data) {
	return request.post("/api/v2/contract/editBiao", data)
}

// 修改抄表
export function offlinePayment(data) {
	return request.post("/api/v2/contract/offlinePayment", data)
}


// 通知
export function lists(data) {
	return request.post("/api/v2/message/fang_lists", data)
}
// 回显
export function houseroom(data) {
	return request.get("/api/building/house", data)
}
// 回显
export function house_modify(data) {
	return request.post("/api/building/house_modify", data)
}

// 回显
export function getYaTypeList(data) {
	return request.post("/api/v2/contract/getYaTypeList", data)
}

// 报修详情
export function baoDetail(data) {
	return request.post("/api/v2/contract/baoDetail", data)
}

// 账单列表
export function getBill(data) {
	return request.get("/api/bill/index", data)
}
// 账单列表-数据条数
export function index_statBill(data) {
	return request.get("/api/bill/index_stat", data)
}
// 账单-删除
export function billDel(data) {
	return request.get("/api/bill/del", data)
}
// 账单-审核
export function billAudit(data) {
	return request.get("/api/bill/audit", data)
}
// 账单-收款
export function receive_payment(data) {
	return request.get("/api/bill/receive_payment", data)
}
// 账单-短信
export function billSms(data) {
	return request.get("/api/bill/sms", data)
}
// 账单-撤回
export function billRevoke(data) {
	return request.get("/api/bill/revoke", data)
}
// 短信充值
export function recharge_config(data) {
	return request.get("/api/sms/recharge_config", data)
}
// 短信充值提交
export function recharge(data) {
	return request.post("/api/sms/recharge", data)
}
// 取消充值提交
export function cancelRecharge(data) {
	return request.post("/api/sms/cancel_recharge", data)
}
// 短信记录
export function send_log(data) {
	return request.get("/api/sms/send_log", data)
}
// 年统计
export function billYear(data) {
	return request.get("/api/bill/year", data)
}
// 日统计
export function billDay(data) {
	return request.get("/api/bill/day", data)
}
// 项目统计
export function category_stat(data) {
	return request.get("/api/bill/category_stat", data)
}
// 押金统计
export function deposit_stat(data) {
	return request.get("/api/bill/deposit_stat", data)
}
// 水电统计
export function board_stat(data) {
	return request.get("/api/bill/board_stat", data)
}
// 总空置率
export function vacant_stat(data) {
	return request.get("/api/bill/vacant_stat", data)
}